﻿using System.Drawing;

namespace CanvasControl.View
{
    public class DrawingContext
    {
        /// <summary>
        /// Прямоугольник, описывающий область отрисовки.
        /// </summary>
        public Rectangle ClipRectangle { get; private set; }
        public Graphics Graphics { get; private set; }
        
        public DrawingContext(Graphics graphics, Rectangle clip)
        {
            Graphics = graphics;
            ClipRectangle = clip;
        }
    }
}
